import { BasicColumn, FormSchema } from '@/components/Table';
import { h, ref } from 'vue';
import { Tag } from 'ant-design-vue';
import { departmentTreeList } from '@/api/sys/msUser';
import { ywGroupSelectList, ywDeptSelectList } from '@/api/heng/ywManage';

import { useUserStore } from '@/store/modules/user';
const userStore = useUserStore();

//表格列名
export const columns: BasicColumn[] = [
  // {
  //   title: '营销组编号',
  //   dataIndex: 'deptNo',
  //   width: 150,
  // },
  {
    title: '营销组名称',
    dataIndex: 'deptName',
    width: 180,
  },
  {
    title: '业务经理',
    dataIndex: 'manageUserName',
    width: 150,
  },
  // {
  //   title: '本组负责人',
  //   dataIndex: 'userName',
  //   width: 150,
  // },
  {
    title: '创建时间',
    width: 180,
    dataIndex: 'createTime',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'keyword',
    label: '搜索',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'deptId',
    label: 'deptId',
    show: false,
  },
  {
    field: 'deptNo',
    label: 'deptNo',
    show: false,
  },
  {
    field: 'deptName',
    label: 'deptName',
    show: false,
  },
  {
    field: 'manageUserName',
    label: '业务经理',
    slot: 'manageUserNameSlot',
  },
  {
    field: 'manageUserNo',
    label: '业务经理编号',
    show: false,
  },
];
